<%@ page import="com.pandorasoft.shop.Company" %>



<div class="fieldcontain ${hasErrors(bean: companyInstance, field: 'name', 'error')} ">
	<label for="name">
		<g:message code="company.name.label" default="Name" />
		
	</label>
	<g:textField name="name" value="${companyInstance?.name}" />
</div>

<div class="fieldcontain ${hasErrors(bean: companyInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="company.description.label" default="Description" />
		
	</label>
	<g:textField name="description" value="${companyInstance?.description}" />
</div>

<div class="fieldcontain ${hasErrors(bean: companyInstance, field: 'location', 'error')} ">
	<label for="location">
		<g:message code="company.location.label" default="Location" />
		
	</label>
	<g:textField name="location" value="${companyInstance?.location}" />
</div>

<div class="fieldcontain ${hasErrors(bean: companyInstance, field: 'shops', 'error')} ">
	<label for="shops">
		<g:message code="company.shops.label" default="Shops" />
		
	</label>
	
<ul>
<g:each in="${companyInstance?.shops?}" var="s">
    <li><g:link controller="shop" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
</g:each>
</ul>
<g:link controller="shop" action="create" params="['company.id': companyInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'shop.label', default: 'Shop')])}</g:link>

</div>

<div class="fieldcontain ${hasErrors(bean: companyInstance, field: 'status', 'error')} ">
	<label for="status">
		<g:message code="company.status.label" default="Status" />
		
	</label>
	<g:textField name="status" value="${companyInstance?.status}" />
</div>

<div class="fieldcontain ${hasErrors(bean: companyInstance, field: 'tel', 'error')} ">
	<label for="tel">
		<g:message code="company.tel.label" default="Tel" />
		
	</label>
	<g:textField name="tel" value="${companyInstance?.tel}" />
</div>

